package com.libing.dao;

import com.libing.base.BaseDao;
import com.libing.entity.InvoiceInformation;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description: 发票信息 DAO
 * @Auther: LEE
 * @Date: Create in 2018/2/10 15:53
 */

@Component
public interface InvoiceInformationDao extends BaseDao<InvoiceInformation> {

    /**
     * 插入数据并为实体类设置主键
     * @param invoiceInformation
     * @return
     */
    int insertAndGetId(InvoiceInformation invoiceInformation);

    List<InvoiceInformation> selectAll();

}
